/**
 * 文档路由
 */

import Layout from '@/layout'
const docsRouter = {
  path: '/document',
  component: Layout,
  redirect: '/document/explorer',
  name: 'document',
  meta: { title: '文档管理', icon: 'menuDocument' },
  children: [
    {
      path: 'explorer',
      name: 'documentExplorer',
      meta: { title: '文档管理', icon: 'menuDocument' },
      component: () => import('@/views/docs/explorer')
    }, {
      path: 'system',
      name: 'systemDocumentExplorer',
      meta: { title: '系统文档', icon: '**' },
      component: () => import('@/views/docs/system')
    }/* {
     path: '/',
     component: DocLayout,
     redirect: '/document/explorer',
     hidden:true,
     name: 'correctivePunishmentWarning',
     children: [{
       path: 'desktop',
       name: 'documentDesktop',
       component: () => import('@/views/upms/user/dashboard'),
       meta: { title: '桌面', icon: 'dashboard' }
     }, {
       path: 'explorer',
       name: 'documentExplorer',
       meta: { title: '文件管理', icon: 'lately' },
       component: () => import('@/views/docs/explorer'),
     }]
   }*/]
}

export default docsRouter
